/**
 * @filename:DirectoryInfoDao 2025-04-27
 * @project starhub-schema  V1.0
 */
package com.starhub.engine.directory.dao;


import com.starhub.engine.directory.entity.DirectoryInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
import java.util.Map;

/**   
 * @Description:(附件目录管理数据访问层)
 * @version: V1.0
 * @author: 孙赛赛-sss
 * 
 */
@Mapper
public interface DirectoryInfoDao{

    /**
    *插入所有字段DirectoryInfo
    */
    int insert(DirectoryInfo record);

    /**
    *插入非空字段DirectoryInfo
    *@param record
    */
    int insertSelective(DirectoryInfo record);

    /**
    *批量删除DirectoryInfo，物理删除
    */
    int  deleteDirectoryInfoRecord(@Param("idList") List<Long> idList);

    /**
     *根据DirectoryInfo对象,更新记录,仅更新非空字段
     *@param record
     */
     int updateByPrimaryKeySelective(DirectoryInfo record);

     /**
     *根据DirectoryInfo对象，更新记录
     *@param record
     */
     int updateByPrimaryKey(DirectoryInfo record);


    /**
    *根据id，查询DirectoryInfo对象
    *@param id 记录id
    */
    DirectoryInfo selectByPrimaryKey(@Param("id") Long id);

    /**
     *
     * @param id
     * @param userId
     * @return
     */
    DirectoryInfo selectByUserPrimaryKey(@Param("id") Long id,@Param("userId")Long userId);

    /**
     *
     * @param params
     * @param userId
     * @return
     */
    List<DirectoryInfo> selectByParams(@Param("params") Map<String , Object> params,@Param("userId") Long userId);

}